import { State } from '.'

const getters = {
  sidebar: (state:State) => state.app.sidebar,
  size: (state:State) => state.app.size,
  device: (state:State) => state.app.device,
  // visitedViews: state => state.tagsView.visitedViews,
  // cachedViews: state => state.tagsView.cachedViews,
  token: (state:State) => state.user.token,
  avatar: (state:State) => state.user.avatar,
  name: (state:State) => state.user.name,
  introduction: (state:State) => state.user.introduction,
  roles: (state:State) => state.user.roles,
  permission_routes: (state:State) => state.permission.routes,
  // errorLogs: state => state.errorLog.logs
}
export default getters
